﻿namespace Chap6_yuanzu
{
    internal class Program
    {
        delegate string MoniReadLine();
        static void Main(string[] args)
        {
            Console.WriteLine("请输入一个字符串：");
            MoniReadLine moniReadLine = new MoniReadLine(Console.ReadLine);
            string input = moniReadLine();
            Console.WriteLine(input);
            var numbers = (1, 2, 3, 4, 5);
            Console.WriteLine(numbers.Item1);
            Console.WriteLine(numbers.Item2);
            Console.WriteLine(numbers.Item3);
            Console.WriteLine(numbers.Item4);
            Console.WriteLine(numbers.Item5);
            Console.WriteLine("Hello, World!");

            CustomerName customer ;
            customer.firstName = "John";
            customer.lastName = "Doe";
            customer.age = 10;
            Console.WriteLine(customer.firstName + " " + customer.lastName);
        }

        struct CustomerName
        {
            public string firstName, lastName;
            public int age;
        }
    }
}
